package com.cius.ssm.service;

import com.cius.ssm.entity.Product;
import com.cius.ssm.entity.ProductAndUser;
import com.cius.ssm.entity.ProductAndUserVo;

import java.util.List;

/**
 * 商品管理service
 * Created by ciuscheung on 17/4/4.
 */
public interface ProductService {
//    查询商品列表
    public List<ProductAndUser> findProductAndUser(ProductAndUserVo productAndUserVo)throws Exception;

//  根据id获得单个Product对象
    public Product findProductById(int id)throws Exception;

//  根据页面页面传入的ProduceAndUser对象更新Product
    public void update(ProductAndUser productAndUser) throws Exception;
}
